package pro.lingwu.station.dao;

import org.apache.ibatis.annotations.Mapper;
import pro.lingwu.station.dto.db.Driver;

import java.util.List;

/**
 * @author @lingwu
 * @date created in 2021/11/17
 */
@Mapper
public interface DriverMapper {

    void addDriver(Driver driver);

    void rmDriver(String account);

    Driver findDriverBy(String account);

    void updateDriver(Driver driver);

    List<Driver> getDrivers();

    long getTotal();
}
